package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ly.common.core.domain.BaseVo;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 投标基础信息，走审批
 * </p>
 * @author WuZH
 * @since 2024-05-14
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName ("erp_tender_info")
@ApiModel (value = "投标基础信息，走审批", description = "投标基础信息，走审批")
public class TenderEntity extends BaseVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ("id")
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty ("投标客户Id")
    @TableField ("customer_id")
    private String customerId;

    @ApiModelProperty ("投标时间")
    @TableField ("tender_time")
    @JsonFormat(pattern = "yyyy-MM-dd" )
    private Date tenderTime;

    @ApiModelProperty ("招标项目资金来源，1：自筹；2：财政拨款；3：政府补贴；4：其他")
    @TableField ("capital_source")
    private Integer capitalSource;

    @ApiModelProperty ("购买标书时间")
    @TableField ("buy_bid_time")
    @JsonFormat(pattern = "yyyy-MM-dd" )
    private Date buyBidTime;

    @ApiModelProperty ("招标方式，1：公开招标；2：邀标；3：仪标")
    @TableField ("tendering_type")
    private Integer tenderingType;

    @ApiModelProperty ("竞争对手")
    @TableField ("competitors")
    private String competitors;

    @ApiModelProperty ("是否需要保证金，1：是；2：否")
    @TableField ("is_ensure")
    private Integer isEnsure;

    @ApiModelProperty ("保证金金额")
    @TableField ("ensure_money")
    private String ensureMoney;

    @ApiModelProperty ("开标日期")
    @TableField ("bid_open_time")
    @JsonFormat(pattern = "yyyy-MM-dd" )
    private Date bidOpenTime;

    @ApiModelProperty ("保证金退还日期")
    @TableField ("ensure_back_time")
    @JsonFormat (pattern = "yyyy-MM-dd" )
    private Date ensureBackTime;

    @ApiModelProperty ("有无内部资源，1：有；2：无")
    @TableField ("is_inside_resource")
    private Integer isInsideResource;

    @ApiModelProperty ("招标项目概况")
    @TableField ("project_overview")
    private String projectOverview;

    @ApiModelProperty ("项目简介")
    @TableField ("project_desc")
    private String projectDesc;

    @ApiModelProperty ("创建时间")
    @TableField ("create_time")
    @JsonFormat ( pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date createTime;

    @ApiModelProperty ("更新时间")
    @TableField ("change_time")
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date changeTime;

    @TableField ("is_used")
    @TableLogic
    private Integer isUsed;

    @ApiModelProperty ("流程实例id")
    @TableField ("instance_id")
    private String instanceId;

    @ApiModelProperty ("流程状态")
    @TableField ("state")
    private String state;




    @ApiModelProperty ("投标客户名称")
    @TableField (exist = false)
    private String customerName;

    @ApiModelProperty("业务type")
    @TableField (exist = false)
    private String businessType;

    @ApiModelProperty("流程模型id")
    @TableField (exist = false)
    private String modelId;

}
